package org.niux.AutoLoginQQ.common;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.apache.http.cookie.Cookie;
import org.niux.AutoLoginQQ.VO.QQNumVO;
import org.niux.AutoLoginQQ.VO.TableVO;

public class Constant {
	//配置文件信息
	public static String VERSION = "2.11.1 beta";
	public static String DELAY_TIME;
	public static String LOGIN_STATUS;
	public static String TOP_LEVEL;
	public static String SPLIT_STR;
	public static String SAME_TIME_LOGIN;
	public static String IS_LOGIN_NEED_VERIFYCODE;
	public static String LOGIN_TIME;
	public static String VERIFYCODE;
	public static int TIMEOUT = 70000;
	public static int MAX_CONNECTION = 100000;
	public static boolean SCAN_TASK_TIMER_LOGGER = true;
	public static boolean SHUTDOWN = false;
	public static boolean AUTO_SHUTDOWN = false;
	public static boolean AUTO_RUN;
	public static boolean AUTO_LOGIN;
	public static boolean SEIZE; //设置是否自动抢线
	public static ThreadPoolManager THREAD_POOL_MANAGER;
	public static String UUID;
	public static boolean TIMING_LOGIN; //定时登录
	public static String HOUR;
	public static String MINUTE;
	public static Map<String,TableVO> TABLE_MAPPING = new HashMap<String, TableVO>();
	
	//端口列表
	public static List<Integer> PORTS = new ArrayList<Integer>();
	
	//导入的QQ号码列表
	public static Map<String,QQNumVO> QQ_LIST = new HashMap<String, QQNumVO>();
	
	//线程池
	public static List<Thread> THREAD_POOL = new ArrayList<Thread>();
	
	//是否进入循环
	public static boolean LOOP = true;
	
	//等待登录队列
	public static List<QQNumVO> LOGIN_QUEEN = new ArrayList<QQNumVO>();
	
	//退出队列
	public static List<QQNumVO> LOGOUT_QUEEN = new ArrayList<QQNumVO>();
	
	//已登录队列
	public static List<QQNumVO> ALREADY_LOGIN_QUEEN = new ArrayList<QQNumVO>();
	
	public static int LOGIN_COUNT = 0;
	
	//登录数据
	public static Map<String, List<Cookie>> LOGIN_DATA = new HashMap<String, List<Cookie>>();
	
	public static void initPorts(){
		PORTS.add(63512);
		PORTS.add(50313);
	}
}
